package com.hxc.common.config;

import lombok.Getter;

/**
 * 自定义异常
 */

@Getter
public class APIException extends RuntimeException {
    private static final long serialVersionUID = -1600211322719507038L;
    private int code;
    private String msg;

    public APIException() {
        super();
    }

    public APIException(String msg) {
        super(msg);
    }

    public APIException(Throwable throwable){
        super(throwable);
    }

    public APIException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }
}
